//
//  cellWithImage.m
//  E-learning
//
//  Created by MinwenYi on 14-7-4.
//  Copyright (c) 2014年 Yang. All rights reserved.
//

#import "cellWithImage.h"

@implementation cellWithImage

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)drawRect:(CGRect)rect

{
    [super drawRect:rect];
    CGContextRef context = UIGraphicsGetCurrentContext();
    
    CGContextSetRGBFillColor(context, 1, 0, 0, 1);
    UIFont *font = [UIFont boldSystemFontOfSize:15];
    
    [@"ceshi" drawInRect:CGRectMake(10, 20, 80, 20) withFont:font];
    
    
    

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
